package com.hsgene.commit.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 订单评论打分
 *
 * @Author: wangxuefeng@hsgene.com
 * @Description:
 * @Date: Created in 10:07 2018/7/9
 * @Modified By:
 */
@Table(name = "geneshop_order_commit_score")
public class CommitOrderScoreInfo implements Serializable {
    /**
     * 订单评论打分表id
     */
    @Id
    private String id;
    /**
     * 评论id
     */
    private String commitInfoId;
    /**
     * 产品描述
     */
    private double productDescription;
    /**
     * 物流服务
     */
    private double logisticsService;
    /**
     * 服务态度
     */
    private double serviceAttitude;
    /**
     * 结果报告
     */
    private double resultReport;
    /**
     * 商品id
     */
    private int productId;
    /**
     * 订单ID
     */
    private int orderId;
    /**
     * 评论时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime = new Date();
    /**
     * 是否删除(逻辑删除)
     */
    private int isDelete;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCommitInfoId() {
        return commitInfoId;
    }

    public void setCommitInfoId(String commitInfoId) {
        this.commitInfoId = commitInfoId;
    }

    public double getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(double productDescription) {
        this.productDescription = productDescription;
    }

    public double getLogisticsService() {
        return logisticsService;
    }

    public void setLogisticsService(double logisticsService) {
        this.logisticsService = logisticsService;
    }

    public double getServiceAttitude() {
        return serviceAttitude;
    }

    public void setServiceAttitude(double serviceAttitude) {
        this.serviceAttitude = serviceAttitude;
    }

    public double getResultReport() {
        return resultReport;
    }

    public void setResultReport(double resultReport) {
        this.resultReport = resultReport;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "CommitOrderScoreInfo{" + "id=" + id + ", commitInfoId=" + commitInfoId + ", productDescription=" +
                productDescription + ", logisticsService=" + logisticsService + ", serviceAttitude=" + serviceAttitude +
                ", resultReport=" + resultReport + ", productId=" + productId + ", orderId=" + orderId +
                ", createTime=" + createTime + ", isDelete=" + isDelete + '}';
    }
}
